package com.ruoyi.system.service;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.domain.app.*;

import java.util.List;
import java.util.Map;

public interface CommunityService {

    List<Map> getOperatorByName(String operatorName);

    List<Map> getPartnerByName(String partnerName);

    List<SysUser> getCommunityPartnerList(Long communityId);

    void addPartner(Long communityId,Long partnerId,Double ratio);

    void delPartner(Long partnerId);

    void setPartner(Long communityId,Long partnerId,Double ratio);

    List<User> registerUserList(String userName,String phone);

    void registerUserDel(Long userId);

    void userState(Long userId,Integer state);

    void setUserPhone(Long userId,String phone);

    List<Map> userList(Long communityId,String userName,String phone);

    void userCharge(Long communityId,Long userId,Integer type,String value);

    void userAddCommunity(String phone,Long communityId);

    void addCommunity(Community community);

    void delCommunity(Long id);

    void setCommunity(Community community);

    void optionReset(JSONObject jsonObject);

    JSONObject optionGet(Long communityId);

    List<Long> communityListIds(String phone,String cardNum,String deviceNum);

    List<Community> communityList(Community community,List<Long> longs);

    List<ChargeOption> getChargeList(Long communityId);

    void resetCharge(List<ChargeOption> chargeOptions);

    List<CardChargeOption> getCardChargeList(Long communityId);

    void resetCardCharge(List<CardChargeOption> cardChargeOptions);

    List<Combo> getComboList(Long communityId);

    void resetCombo(List<Combo> combos);

    List<ConsumptionOption> getTimeOption(Long communityId);

    void resetTimeOption(List<ConsumptionOption> consumptionOptions);


}
